﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AppCode/MasterPages/Admin.master" AutoEventWireup="true" CodeFile="RequestDetail.aspx.cs" Inherits="AppCode_Admin_RequestDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
      <div style="width:939px;margin:0 auto; margin-bottom:20px;">
        <p style="font-size:19px; font-weight:bold; margin-top:40px;text-align:center; margin-bottom:10px;">Request Detail Policy</p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="939px" BackColor="#DEBA84" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CellSpacing="2" RowStyle-HorizontalAlign="Center" OnRowCommand="GridView1_RowCommand">
            <Columns>
                <asp:BoundField DataField="RequestId" HeaderText="RequestId"/>
                <asp:BoundField DataField="RequestDate" HeaderText="RequestDate" />
                <asp:BoundField DataField="EmpNo" HeaderText="EmpNo" />
                <asp:BoundField DataField="PolicyId" HeaderText="PolicyId" />
                <asp:BoundField DataField="PolicyName" HeaderText="PolicyName" />
                <asp:BoundField DataField="Amount" HeaderText="PolicyAmount" />
                <asp:BoundField DataField="Emi" HeaderText="Emi" />
                <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CommandName="btndelete" CommandArgument='<%#Eval("RequestId") %>'>Delete</asp:LinkButton> 
                        <a href='AddPolicyOnEmp.aspx?requestId=<%#Eval("RequestId") %>'>Apply</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <HeaderStyle BackColor="#000" Font-Bold="True" ForeColor="White" />
            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFF7E7" ForeColor="#000" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FFF1D4" />
            <SortedAscendingHeaderStyle BackColor="#B95C30" />
            <SortedDescendingCellStyle BackColor="#F1E5CE" />
            <SortedDescendingHeaderStyle BackColor="#93451F" />

        </asp:GridView>
    </div>
</asp:Content>

